from apps import db



class Record(db.Model):
    __tablename__ ='record'

    start_time = db.Column(db.DateTime, primary_key=True)
    result = db.Column(db.Text, nullable=False)
    occur_time = db.Column(db.Text, nullable=False)
    img_save_path = db.Column(db.Text, nullable=False)

class TenHyModel(db.Model):
    __tablename__ ='tenhymodel'

    start_time = db.Column(db.DateTime, primary_key=True)
    message = db.Column(db.Text, nullable=False)
